package core.objects.enums;

public enum GenderEnum {
        //enum('male','female')

        None(""), Male("Male"), Female("Female");
        private String gender;

        private GenderEnum(String gender) {
            this.gender = gender;
        }

        @Override
        public String toString() {
            return gender;
        }
        
        public static GenderEnum valueOfString(String name){
            for(GenderEnum g : values()){
                if (name != null && g.toString().toLowerCase().equals(name.toLowerCase())){
                    return g;
                }
            }
            return None;
        }
        
    }